#include "stdafx.h"
#include "WorkHolidayInfo.h"
#include "ui_WorkHolidayInfo.h"
#include "BaseInclude.h"
#include "PlanFunction.h"
#include <QDate>
#include<qcalendarwidget.h>
#include <QMouseEvent>


/***********************************************************************************************************************************/
QWidget * getWorkHolidayInfo()
{
	return new QWorkHolidayInfo();
}

/***********************************************************************************************************************************/
QWorkHolidayInfo::QWorkHolidayInfo(QWidget *parent)
: QWidget(parent)
{
	ui = new Ui::WorkHolidayInfo();
	ui->setupUi(this);
//	connect(ui->calendarWidget, SIGNAL(mousePressEvent(QMouseEvent*event)), this, SLOT(mouseDoubleClick(QMouseEvent*event)));
}

QWorkHolidayInfo::~QWorkHolidayInfo()
{

	delete ui;
}

void QWorkHolidayInfo::mouseDoubleClick(QMouseEvent *event)
{
	int x = event->pos().x();
	int y = event->pos().y();
//	bool isContant = ui->calendarWidget->rect().contains(x,y);
}

void QWorkHolidayInfo::on_calendarWidget_doubleClicked()
{
	//ui->calendarWidget->rect().contains()
	int a = 0;
}
//void QWorkHolidayInfo::on_calendarWidget_clicked()
//{
//	int a = 0;
//}

